-- GENERATED SPELL FOR [Bristleback Geomancer] --


function spell0_3263(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3263', 3000, 1)
end

function spell1_3263(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(20794,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3263', 11000, 1)
end

function spell2_3263(pUnit, Event) --@Quick Flame Ward,n/a--
pUnit:FullCastSpellOnTarget(4979,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3263', 11500, 1)
end

function Sorts_3263(pUnit, Event)
local choix_sorts_3263 = math.random(0, 2)
if choix_sorts_3263 == 0 then
pUnit:RegisterEvent('spell0_3263', 1, 1)
end
if choix_sorts_3263 == 1 then
pUnit:RegisterEvent('spell1_3263', 1, 1)
end
if choix_sorts_3263 == 2 then
pUnit:RegisterEvent('spell2_3263', 1, 1)
end
end

function mob3263_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3263', math.random(1500, 3000), 1)
end

function mob3263_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3263_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3263_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3263, 1, 'mob3263_Action')
RegisterUnitEvent(3263, 2, 'mob3263_Leave')
RegisterUnitEvent(3263, 3, 'mob3263_Kill')
RegisterUnitEvent(3263, 4, 'mob3263_Die')
